﻿#include<iostream>
using namespace std;
int main() {
	char a, c;
	bool b;
	cin >> a;
	c = tolower(a);
	b = islower(a);
	cout << b << endl;
}